package com.xjh.basestudy.javabase.method;


public class TestStudent {
    public static void main(String[] args) {
        Student s1 = new Student();//在同一个包里可以直接创建另一个类的对象
        s1.name = "Jianhua";
        Student.collage = "安阳工学院";
        s1.age = 21;
//        s1.collage = "安阳工学院";//静态变量可以这样访问但是不建议
        s1.show();

        Student s2= new Student();
        s2.name = "Nana";
        s2.age = 33;
        //s2.collage = "安阳工学院";
        s2.show();
    }
}
